package com.ikun.admin.modules.sys.vo;

import com.ikun.common.validate.anno.NotEmpty;
import com.ikun.common.validate.anno.NotNull;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @ClassName RoleMenuAddOrUpdateVo
 * @Description:
 * @CreateDate: 2024/7/17 9:16
 */
@ApiModel("角色菜单添加或更新Vo")
@Data
public class RoleMenuAddOrUpdateVo {

    private Long id;

    @ApiModelProperty("角色id")
    @NotNull(message = "请选择需要编辑的角色id")
    private Long roleId;

    @ApiModelProperty("权限合集")
    @NotNull(message = "请至少选择一个权限菜单")
    @NotEmpty(message = "角色权限不能为空")
    private List<Long> permIdList;
}
